import request from '@/router/axios';

export const getList = (current,size, params) => {
  return request({
    url: '/api/ManageExamScore/GetExamSoreRecord',
    method: 'get',
    params: {
      ...params,
      current,
      size,
    }
  })
}

export const getDetail = (id) => {
  return request({
    url: '/api/school-service/jxgy/detail',
    method: 'get',
    params: {
      id
    }
  })
}

export const remove = (row) => {
  return request({
    url: '/api/ManageExamScore/ImportExamSoreRecord',
    method: 'post',
    data: row
  })
}

export const add = (row) => {
  return request({
    url: '/api/ManageExamScore/AddOrEditExamSoreRecord',
    method: 'post',
    data: row
  })
}

export const update = (row) => {
  return request({
    url: '/api/ManageExamScore/AddOrEditExamSoreRecord',
    method: 'post',
    data: row
  })
}

//根据班级获取学生
export const getClassStudentSelect = (params) => {
  return request({
    url: '/api/ManageExamScore/GetClassStudentSelect',
    method: 'get',
    params: params
  })
}

//获取课程
export const getTeacherCourseSelect = (params) => {
  return request({
    url: '/api/ManageExamScore/GetTeacherCourseSelect',
    method: 'get',
    params: params
  })
}


